package exfist;
/**
 * 
 * @author brianmaccarthy
 *
 */
public class State_Tree 
{
	Control_Node base_state;
	public State_Tree()
	{
		this(null);
	}
	public State_Tree(Control_Node base)
	{
		base_state = base;
	}
	protected Node traverseState(Node start)
	{
		Node result = new Node();
		if(start.hasChild()==true)
		{
			result=traverseState(start.getChild());
		}
		System.out.println("1");
		return result;
	}	
	protected void addNode(Node parent,Node newChild)
	{
		parent.setChild(newChild);
	}
	private void addNewState(Control_Node parent,Node newChild)
	{
		parent.addChild(newChild);
	}
}
